package com.code.leetcode.offer;

import java.util.stream.IntStream;

/**
 * @author codeDorado
 * @version 1.0
 * @date 2020/8/6 16:52
 */
public class The64 {
    public int sumNums(int n) {
        return IntStream.range(0, n + 1).sum();
    }
}
